<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>业务详细</title>
<script type="text/javascript">
	$(function(){
		bindShipForm(applyid);
	});
	
	function bindShipForm(applyid){
		$.ajax({ 
			url: basePath() + 'business/getshipinfo.do',
			data: {"applyid": applyid},
			dataType: "json",
	        contentType: "application/json",
			success: function(data){
		    	if(data.result == 1){
		    		var shipidnums = [];
		    		for(var i=0; i< data.datas.length; i++){
		    			bindShipInfoList(data.datas[i]);
			    		shipidnums.push(data.datas[i].shipidnumber);
			    		
		    		}
		    		//绑定校验数据
//		    		bindVerifyForm(applyid,shipidnums);
		    	}
	      	}
		});
	}
	
	function bindShipInfoList(data){
		var htmlStr = ''+		
					'<tr>'+
					'	<td>'+ data.shipname +'</td>'+
					'	<td>'+ data.shipnameen +'</td>'+
					'	<td>'+ data.imo +'</td>'+
					'	<td>'+ data.portcode +'</td>'+
					'	<td>'+ data.grosstonnage +'</td>'+
					'	<td>'+ data.enginepower +'</td>'+
					'	<td>'+ data.typecode +'</td>'+
					'</tr>';
		
		$('#TableShip').append(htmlStr);
	}
</script>
</head>
<body style="background-color: white;">
	
	<!-- 业务信息 -->
	<table class="table table-bordered"  style="vertical-align: middle !important;">
		<tr>
			<td class="tdTitle">
				水域(港口)名称：
			</td>
			<td class="tdContent">
				<span id="watersname"></span>
			</td>
			<td class="tdTitle">
				进入时间：
			</td>
			<td class="tdContent">
				<span id="entertime"></span>
			</td>
			<td class="tdTitle">
				驶离时间：
			</td>
			<td class="tdContent">
				<span id=leavetime></span>
			</td>
		</tr>
		<tr>
			<td class="tdTitle">
				进入原因：
			</td>
			<td colspan="5">
				<span id="reason"></span>
			</td>
		</tr>
		<tr>
			<td class="tdTitle">
				其他需要说明的情况：
			</td>
			<td colspan="5">
				<span id="otherreason"></span>
			</td>
		</tr>
		<tr>
			<td class="tdTitle">
				其他管理部门意见：
			</td>
			<td colspan="5">
				<span id="govopinion"></span>
			</td>
		</tr>
	</table>
	
	<!-- 船舶信息 -->
	<table class="table table-bordered" id="TableShip" style="text-align: center;">
	   	<thead>
		   	<tr>
				<th style="text-align: center; background-color: #eee;">中文船名</th>
		        <th style="text-align: center; background-color: #eee;">英文船名</th>
		        <th style="text-align: center; background-color: #eee;">IMO号</th>
		        <th style="text-align: center; background-color: #eee;">船籍</th>
		        <th style="text-align: center; background-color: #eee;">总吨位</th>
		        <th style="text-align: center; background-color: #eee;">主机总功率</th>
		        <th style="text-align: center; background-color: #eee;">船种</th>
		    </tr>
	    </thead>
		<tbody>
	
		</tbody>
	</table>
</body>
</html>